QT += quick
QT += multimedia    #添加多媒体

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        backend.cpp \
        cameraservice.cpp \
        main.cpp

RESOURCES += qml.qrc

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    backend.h \
    cameraservice.h

win32:{
    Debug:{
#opencv
INCLUDEPATH += C:/OpenCV/debug/build/include \
               C:/OpenCV/debug/build/include/opencv2
LIBS += -LC:/OpenCV/debug/build/lib \
    -lopencv_calib3d455d \
    -lopencv_core455d \
    -lopencv_dnn455d \
    -lopencv_features2d455d \
    -lopencv_flann455d \
    -lopencv_gapi455d \
    -lopencv_highgui455d \
    -lopencv_imgcodecs455d \
    -lopencv_imgproc455d \
    -lopencv_ml455d \
    -lopencv_objdetect455d \
    -lopencv_photo455d \
    -lopencv_stitching455d \
    -lopencv_video455d \
    -lopencv_videoio455d
}
Release:{
#opencv
INCLUDEPATH += C:/OpenCV/release/build/include \
               C:/OpenCV/release/build/include/opencv2
LIBS += -LC:/OpenCV/release/build/lib \
    -lopencv_calib3d455 \
    -lopencv_core455 \
    -lopencv_dnn455 \
    -lopencv_features2d455 \
    -lopencv_flann455 \
    -lopencv_gapi455 \
    -lopencv_highgui455 \
    -lopencv_imgcodecs455 \
    -lopencv_imgproc455 \
    -lopencv_ml455 \
    -lopencv_objdetect455 \
    -lopencv_photo455 \
    -lopencv_stitching455 \
    -lopencv_video455 \
    -lopencv_videoio455
}
}

